package org.mzy.user.service.impl;

import org.mzy.user.domain.User;
import org.mzy.user.mapper.UserMapper;
import org.mzy.user.service.IUserService;
import org.mzy.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author mzy
 * @since 2022-10-19
 */
@Service
public class UserServiceImpl extends BaseServiceImpl<User> implements IUserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findByPhone(String phone) {
        return userMapper.findByPhone(phone);
    }

    @Override
    public User findByLogininfoId(Long id) {
        return userMapper.findByLogininfoId(id);
    }
}
